/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package models.entidades.utilitario;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 *
 * @author Wenderson
 */
public class ManipulaSet {
    
    public static int getSize(Set set) {
        Collection c = set;
        return c.size();
    }
    
    public static boolean isEmpty(Set set) {
        Collection c = set;
        return c.isEmpty();
    }
    
    public static Set addValue(Object value) {
        Set set = new HashSet();
        set.add(value);
        return set;
    }
    
    public static List getList(Set set) {
        return new ArrayList(set);
    }
    
    public static Set getSet(List list) {
        return (Set) list;
    }
}
